Skip to content

feat(benchmarks): search throughput harness and 1.8.0 results - #641

Merged
gloryfromca merged 10 commits into
mainfrom
feat/search-throughput-benchmark
Nov 25, 2026
Merged

gloryfromca merged 10 commits into
mainfrom
feat/search-throughput-benchmark

Conversation

@gloryfromca

@gloryfromca gloryfromca commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary

This PR publishes how much search load EverOS sustains, next to the accuracy numbers already in benchmarks/, and adds the harness that measures it. The setup is one 4-core, 8 GB Linux server with 168,821 memories:

Search 1.7.1 1.8.0 (main c5d9ace9), glibc 1.8.0, jemalloc
hybrid, sustained requests/s < 4 14 16
keyword, sustained requests/s 70 120 140
keyword, best single round 70 150 170
hybrid at 4/s: p50 / peak memory 4.50 s / 4,093 MB 0.48 s / 673 MB 0.52 s / 518 MB
  • benchmarks/throughput.md (and throughput.zh.md):
    • results;
    • every step of every round;
    • the setup: machine, store, queries, stubbed providers, load and verdict;
    • how to reproduce the numbers;
    • limits.
  • benchmarks/throughput/, the harness:
    • build_store.py, make_queries.py: build the store and the queries from LoCoMo10 and the cleaned LongMemEval-S;
    • stub_models.py: replays 14,252 recorded query-embedding latencies;
    • load.py: open-loop load and the kept-up verdict; --senders N splits a step over N processes;
    • sweep.sh: runs one version and method;
    • summarize.py: prints the tables;
    • core_bench.py: single-core baseline.
  • Links: the READMEs (English and Chinese) and benchmarks/README link to the page; CHANGELOG.md lists it under Added.

Area

  • Architecture method
  • Benchmark
  • Use case
  • Documentation
  • Developer experience
  • CI, build, or release

Verification

The numbers come from this harness, run on dlab2 (Xeon Silver 4310, server pinned to 4 cores with an 8 GB cap):

  • 1.7.1 came from PyPI; main c5d9ace9 was installed from GitHub.
  • hybrid: two rounds, the second with the servers in reverse order.
  • keyword: a second run on 2026-11-25, on the same machine, store and builds.
    • Four sender processes (SENDERS=4), 60 s steps, three rounds. One load.py process could not send much past 140 requests/s, so the first run's keyword rates partly measured the load generator.
    • Results: 1.7.1 went from 60 to 70; 1.8.0 on glibc stayed at 120; on jemalloc "≥ 140" became 140.
    • Rounds disagree near the limit. A stall of a few seconds can fail a step the other rounds keep up at; the page gives the best single round beside each sustained rate.
    • Two rounds rerun. Round 2 of both 1.8.0 configurations was run again, because other jobs ran on the machine during it.
    • The first run's keyword steps stay on the page for the same-load comparison at 60/s.
  • Two files changed after the run, both from the raw per-request logs:
    • load.py: the kept-up rule's latency slack went from 2 s to 0.5 s. The 2 s let one step through (1.7.1 keyword at 80/s, round 1, which was backlogging) and was too loose for millisecond searches. All 85 step summaries were re-judged with the committed judge(). Exactly that step flipped, and no reported rate changed (1.7.1 failed 80/s in round 2 anyway).
    • summarize.py: now marks a lower bound (≥) when the next rate failed only because the load generator stalled. At 1.8.0 jemalloc keyword 160/s round 2, the server used 0.06 cores; round 1 kept up at 160/s.
  • After review (7562487), all published steps were re-judged with the committed judge() against the raw per-request logs:
    • load.py: a step now also needs throughput ≥ 0.9 × rate. Three steps flipped, all 1.7.1 hybrid round 2 (4, 5 and 6/s), which takes 1.7.1's sustained hybrid rate below 4.
    • sweep.sh: checks its inputs first and exits on a failed load.py.
    • build_store.py: settles on the cascade, the memorize queue and the markdown under --root.
  • hybrid control run (2026-11-25, jemalloc): query_max_concurrent raised from 16 to 64, checked by sampling the server's open connections to the embedding stub (peak 56–60, against 16 at the default). The result matched the default: 16/s kept up and 20/s fell behind in both rounds, about 16 completed per second on 2.3 of 4 cores. So jemalloc's 16/s is EverOS's own limit, not the embedding cap.
  • Every other harness file matches, byte for byte, the copy that ran. The second keyword run used the committed load.py and sweep.sh (checksums compared on dlab2); summarize.py gained the best-round column after it.

Smoke runs of the new scripts:

Script Smoke run
make_queries.py Rebuilt the 2,270 queries the run used: same lines, now in a fixed order (the old script ordered by a set).
build_store.py Full ingest of a small plan into a local server with fake providers: 117 sessions, all 200, and the settle wait ended as designed.
stub_models.py Called only for embeddings: 7,201 calls for 7,200 hybrid searches; no LLM or rerank calls.
sweep.sh / load.py Short sweeps of 1.7.1 and main on dlab2 before the run.
sweep.sh input checks QUERIES=/nonexistent, a missing store and a plain directory each exit 2 before anything is copied.
build_store.py settle Fake API whose root gained a markdown file on each of the first three polls: the quiet count reset each time, settled after five unchanged polls.
load.py --senders Against a stub HTTP server: 1 and 3 senders locally, 90/90 requests merged in send order; 4 senders on dlab2, 80/80.

The two dataset files were checked against their public sources:

  • longmemeval_s_cleaned.json on Hugging Face has the same sha256 (d6f21ea9…) as the store's source.
  • The LoCoMo10 file on snap-research/locomo differs from the store's copy only in one image URL, which ingestion does not read.
make lint            # ruff, import-linter, datetime, singletons, openapi
make docs-check
python scripts/check_cjk.py
python scripts/check_file_sizes.py
GITHUB_EVENT_NAME=pull_request GITHUB_PR_BASE_SHA=<main> python scripts/check_commit_messages.py

Checklist

  • I kept the change scoped to the relevant area.
  • I am opening this from a separate branch, not pushing directly to main.
  • I updated docs, examples, or setup notes when behavior changed.
  • I added or updated tests when the change affects behavior. (No product behavior changes; the harness was exercised as above.)
  • I did not commit secrets, .env files, dependency folders, or generated output.
  • Active relative links in Markdown files resolve.

Notes for Reviewers

  • What was measured. The numbers are for main c5d9ace9, ahead of the 1.8.0 tag. The page says so and does not claim to be the tag; it can be re-run on the tag with the same commands.
  • The store is not committed. Rebuilding it costs about $43 of extraction and embeddings (about 2 hours); the page says so.
  • Stub latency. The stub replays one provider's recorded latency, so hybrid latency moves with it. The limits section says how.

🤖 Generated with Claude Code

gloryfromca and others added 2 commits November 24, 2026 18:39
benchmarks/throughput/ measures how many hybrid and keyword searches per
second an EverOS server sustains, and the latency, CPU and memory at each
rate:

- build_store.py ingests LoCoMo10 and the first 112 LongMemEval-S
  haystacks through a running server's own extraction, then waits until
  the cascade is idle and the index row counts hold still for five
  minutes. The plan is fixed; a LongMemEval session shared by several
  questions goes to the first of them in plan order.
- make_queries.py writes the datasets' own questions, each as its user.
- stub_models.py answers the embedding and rerank calls; each embedding
  waits a latency drawn from 14,252 recorded calls to
  Qwen/Qwen3-Embedding-4B on DeepInfra (query_embedding_latency.csv).
  An LLM call gets a 400: a search should make none.
- load.py sends at a fixed rate (open loop), judges whether the step kept
  up (all 200, median latency of the last third under twice the first
  third's or within 0.5 s of it) and samples the server's CPU and memory
  from /proc.
- sweep.sh copies the store, starts the stub and the server, waits for
  the cascade and optionally for the vector index type, warms up for
  30 s and steps the rate up until two steps fall behind.
- summarize.py prints the tables; a rate whose next step failed only
  because the load generator stalled is marked as a lower bound.
- core_bench.py times one core, to set beside the numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
benchmarks/throughput.md (and its Chinese mirror) gives the sustained
hybrid and keyword search rates of 1.7.1 and of main at c5d9ace (glibc
and jemalloc) on a 4-core, 8 GB server holding 168,821 memories, two
rounds each: hybrid 4 against 14 and 16 requests per second, keyword 60
against 120 and at least 140, with latency, CPU and peak memory, the
setup and how to reproduce it. The READMEs and benchmarks/README link to
it, and the changelog lists it under Added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gloryfromca
gloryfromca requested a review from dani1005 November 24, 2026 10:41

@gloryfromca gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: the store builder must not report successful completion after any ingestion request failed.

I found one reproducibility defect inline. I reviewed the full diff and relevant search/add/health callers, both branch commits and the 1.7.1 compatibility surface, repository rules, architecture boundaries, backward compatibility, test integrity, and the English/Chinese result and reproduction documentation. No tests were weakened.

Validation: all lint, formatting, import-contract, repository-policy, OpenAPI, and documentation checks passed. Integration: 235 passed, 10 skipped, 6 deselected. Unit: 4414 passed, 4 skipped, and 11 failed because NLTK rejected the shared worktree's non-private data directory; the complete affected tokenizer file passed 15/15 when rerun with its data in a private temporary directory.

Comment thread benchmarks/throughput/build_store.py Resolved
gloryfromca and others added 2 commits November 24, 2026 19:05
build_store.py recorded a non-200 /memory/add or /memory/flush and then
waited for the store to settle and exited 0, so a transient failure
during the two-hour build left a store missing sessions that
make_queries.py and sweep.sh accepted as the documented one. A call is
now sent again up to --attempts times (default 3, --retry-wait seconds
apart, longer each time; a resent message is not stored twice). A
session still failing is left unfinished, and once every worker is done
the build lists the failed sessions and exits 1 before the settle wait.

Checked against a fake API: /add always 500 lists all 19 sessions of
locomo:0 and exits 1; /add 500 on each session's first call only
retries to 200 for all 19 and goes on to settle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@gloryfromca gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers; this can merge as far as I am concerned.

The prior incomplete-store blocker is fixed and its thread is resolved. I reviewed the two-commit delta against the full PR and affected add/search/health and message-deduplication paths, including repository rules, architecture constraints, backward compatibility, history, documentation parity, and test integrity; no tests were weakened and I found no new issue worth raising.

Validation: all lint, formatting, import-contract, repository-policy, OpenAPI, and documentation checks passed; the benchmark-focused unit selection passed 435 tests with 4 skipped. Deterministic mock-transport checks also passed for retry-to-200, exhausted non-200 responses, and exhausted connection errors.

@dani1005 dani1005 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran the harness end to end on macOS: a small store built by build_store.py against the repo's fake providers (tests/acceptance/purge/fake_upstream.py, 136 sessions, 6 users), then make_queries.py, sweep.sh for both methods on main and on 1.7.1 from PyPI, and summarize.py. The pipeline works and the design is sound: open loop, two rounds in reverse order, an explicit kept-up rule, honest limits. Not checked: the published numbers themselves, Linux CPU/memory sampling, systemd-run/taskset.

Worth settling before merge (about the published numbers):

  1. ≥ 140 rests on an anomaly the harness can't produce. At keyword 160/s and 180/s, requests that returned 200 show latencies of 708 s and 1,461 s, under --timeout 60. httpx enforces that timeout per phase (connect/pool/read/write), so even all four maxed out stays far below this. I checked: against a server that accepts but never answers, or one that never accepts, every request ends in ReadTimeout/ConnectTimeout at the timeout. Against a trivial server, one load.py holds 1,000/s with ~0 send lag. So the client process itself froze, or something outside the harness happened; "one load.py can't send faster" doesn't explain it. The < 0.3 cores rule in summarize.py also can't tell that apart from a hung server. 140 held in both rounds and stands; the ≥ and "the server's own ceiling is higher" need a rerun of 160/s with two load.py processes first.
  2. The hybrid ceiling may be the query-embedding budget, not EverOS. default.toml says searches/s ≈ query_max_concurrent / per-call latency = 16 / 0.78 s ≈ 20.5. jemalloc keeps up at 16/s and falls behind at 20/s, where Little's law puts ~15.6 embeds in flight against a cap of 16, while the server used 2.35 of 4 cores. A control run with query_max_concurrent=64 or a zero-latency stub would show which one binds. Otherwise please say it in the results, not only in Limits.
  3. src/everos/entrypoints/cli/launcher.py:10-13 still says jemalloc took keyword from 80 to 161 QPS and hybrid at 5 QPS from 4.3 to 2.4 s. This page says 120 vs ≥ 140 and ~0.58 s for both. Please reconcile it in this PR, or say which measurement each set comes from.

Harness fixes (inline): the store build's settle wait, sweep.sh ignoring a failing load.py, the kept-up rule not checking throughput, the 1.7.1 install command, and two doc pointers.

Minor:

  • sweep.log prints everos 1.7.1 for both main and PyPI 1.7.1 (main hasn't bumped its version), so a run's log can't tell which build it measured. Recording git rev-parse / direct_url.json would.
  • ~95% of the 2,270 queries go to the 20 LoCoMo users (112 LME users get one each), so the load sits on 15% of users, whose data stays hot. Search is per user, so "169k memories" isn't what each query works over. Worth a line in Limits.
  • The page doesn't say which version builds the store (the text implies 1.7.1, then converted). Building on 1.8.0 and sweeping 1.7.1 on that store isn't covered.
  • results/<run>/store copies the store's everos.toml; if a builder put real keys there, the results directory carries them. A one-line warning would do.

Security otherwise clean: everything binds 127.0.0.1, the stubs use dummy keys, the CSV is floats only, and longmemeval_s_cleaned.json matches the quoted sha256.

Comment thread benchmarks/throughput/build_store.py Resolved
Comment thread benchmarks/throughput/build_store.py Outdated
if codes[-1] != 200:
failed.append((sid, codes))
break
done = len(todo) - queue.qsize()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: len(todo) - queue.qsize() counts sessions taken from the queue, not finished ones, so with 8 workers the progress reads 136/136 while 7 are still running.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7562487: the progress line counts sessions that finished (a counter bumped after the flush), so the last line is 136/136 only when all are done.

Comment thread benchmarks/throughput/build_store.py Outdated
lme:<i> LongMemEval-S question i's haystack sessions, one user (``lme_<i>``)

<sources_dir> holds ``locomo10.json`` and ``longmemeval_s_cleaned.json``
(``bash benchmarks/download_data.sh locomo`` / ``longmemeval``). A LongMemEval

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

download_data.sh longmemeval fetches longmemeval_s.json, not the cleaned file this reads.

Suggested change
(``bash benchmarks/download_data.sh locomo`` / ``longmemeval``). A LongMemEval
(``bash benchmarks/download_data.sh locomo``; the cleaned LongMemEval-S as in
benchmarks/throughput.md, Reproduce step 1). A LongMemEval

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in 7562487.

Comment thread benchmarks/throughput.md Outdated
3. **Install each version under test** into its own virtual environment:

```bash
uv venv v1.7.1 && uv pip install --python v1.7.1 "everos==1.7.1"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As written this fails: error: Invalid version request: Python <3.6 is not supported but 1.7.1 was requested. uv reads v1.7.1 as a Python version. The venv's interpreter path works:

Suggested change
uv venv v1.7.1 && uv pip install --python v1.7.1 "everos==1.7.1"
uv venv v1.7.1 && uv pip install --python v1.7.1/bin/python "everos==1.7.1"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in 1c564b6, in the Chinese page too.

behind=0
for r in $RATES; do
# shellcheck disable=SC2086
line=$(${CLIENT_WRAP:-} "$PY" "$HERE/load.py" --base "http://127.0.0.1:$SP" --method "$METHOD" \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If load.py fails, the sweep carries on: line is empty, nothing counts as behind, and it ends with done and exit 0. Reproduced with QUERIES=/nonexistent: it copied the store, started the server, waited for it, crashed at every step, logged blank lines and exited 0. With the default 12 hybrid rates it would do that for all of them. Suggest checking $QUERIES (and the store) before copying anything, and exiting when load.py returns non-zero.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7562487. sweep.sh now checks the everos executable, $QUERIES (non-empty) and the store (.index/ present) before copying anything, exiting 2. A failed warm-up or step logs load.py failed at <rate>/s and exits 1. Checked: QUERIES=/nonexistent, a missing store and a plain directory each exit 2 with nothing copied. The log line also records the install's commit from direct_url.json, so main and 1.7.1 are told apart.

Comment thread benchmarks/throughput/load.py Outdated
"throughput": round(sum(r["sent"] + r["s"] <= t0 + span for r in ok) / span, 1),
"p50_ms": round(1000 * (pct(lat, 50) or 0)),
"p95_ms": round(1000 * (pct(lat, 95) or 0)),
"keeps_up": len(ok) == len(rows) and late <= max(2 * early, early + 0.5),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This compares the late median with the early one only, so a step whose latency is high from the start can pass: hybrid v1.7.1 5/s r2 is judged kept up with p50 18.9 s and 3.2 done/s. Only the both-rounds rule kept it out. throughput is computed but unused here. Suggest also requiring the step's throughput to be at least 0.9 × rate (it's already measured within the send window). 1.8.0's results shouldn't move; 1.7.1's 4 gets firmer or drops below the lowest rate tried, which the page should say either way.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7562487: kept up now also needs throughput ≥ 0.9 × rate. I re-judged every published step with the committed judge() against the raw per-request logs. Three flip, all 1.7.1 hybrid round 2: 4/s (3.4 done/s), 5/s (3.2) and 6/s (4.4). So 1.7.1's sustained hybrid rate is now below 4, the lowest rate tried. Its best round still kept up at 4. The page, READMEs and CHANGELOG say fewer than 4 (1c564b6). Nothing else moved, including all 1.8.0 rows and the new keyword run.

Comment thread benchmarks/throughput.md Outdated
| `keyword` | 1.8.0, jemalloc | ≥ 140 | 18 ms | 256 ms | 1.59 | 468 MB |

≥ 140: the next rate, 160, kept up in one round and failed in the other only because
the load generator stalled (see [Limits](#limits)); the server's own ceiling is

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See summary point 1: the 708 s / 1,461 s latencies on 200 responses under a 60 s timeout point to a frozen client process, not a send-rate limit, and a hung server would look the same to the < 0.3 cores rule. Until a two-process rerun, suggest "160 kept up in one round; the other round is unexplained (see Limits)" and dropping the ≥. The same goes for the "One load generator process" bullet at line 254.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced by a rerun. keyword was measured again on 2026-11-25 with four load.py processes (--senders, 4025d77), 60 s steps and three rounds. Sustained rates are now 70 / 120 / 140 (1.7.1 / glibc / jemalloc), with no ≥. Best single rounds reached 70 / 150 / 170, and the page shows those too. You're right that a send-rate limit was not shown. The Limits bullet now says the single process froze, with 200s after up to 1,469 s under a 60 s timeout and the server under 0.2 cores, and that the cause was not found. In the four-process run no request exceeded the timeout and the server used over 1 core in every step.

Comment thread README.md Outdated
[benchmarks/locomo.md](benchmarks/locomo.md); how to reproduce every number is in
[benchmarks/README.md](benchmarks/README.md).

Under load, on a 4-core, 8 GB server with 169k memories, 1.8.0 sustains 14 to 16

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The page says this is main ahead of the tag; the README sentence drops that.

Suggested change
Under load, on a 4-core, 8 GB server with 169k memories, 1.8.0 sustains 14 to 16
Under load, on a 4-core, 8 GB server with 169k memories, 1.8.0 (pre-release main) sustains 14 to 16

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in 1c564b6, plus the new numbers (1.7.1: under 4 / 70); README.zh-CN likewise.

@gloryfromca gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: the reproduction harness and unsupported throughput claims need correction before merge.

The new review evidence changes my stance on this unchanged revision. I independently confirmed that the settle loop compares an immutable startup row snapshot, the documented uv pip install --python v1.7.1 command exits 2, a failed command substitution does not stop sweep.sh, and the current judge can return keeps_up: true for 3.4 completions/s at a requested 5/s. The download-script mismatch is also factual. The 708–1,461 s successful-request latencies under phase timeouts do not establish that the server ceiling exceeds 140/s, so the ≥140 headline needs either supporting rerun evidence or narrower wording. The progress display and README release qualification are straightforward secondary corrections.

One nuance was added on the settle thread: memorize_queue.pending is not an extraction-completion signal for this builder's synchronous adds, so that suggested check alone would not fix settlement.

Validation this turn: changed-file Ruff/format and documentation checks passed; focused health/queue tests passed 21/21. Direct reproductions produced the uv exit-2 error, shell exit 0 after failed substitutions, and keeps_up: true at 3.4/5 completions per second. No code was changed.

gloryfromca and others added 3 commits November 25, 2026 13:47
One load.py process stalls near 140 requests/s on the benchmark's client
cores: it falls behind its send schedule and the step reads as a server
that cannot keep up. With four processes the 1.8.0 glibc server held 140
requests/s in both rounds where one process had failed it in both.

load.py --senders N splits the rate over N processes, each with its own
seed, and judges the step on all their requests merged in send order;
sweep.sh passes SENDERS (default 1). summarize.py counts rounds per method
and server, so a method run for more rounds than another is still judged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Near a server's limit the rounds disagree: a stall of a few seconds can
fail one round's step that the others keep up at. The sustained rate
(every round kept up) hides how far a good round got, so the table now
also gives the highest rate any single round kept up at.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One load.py process could not send much past 140 requests/s, so the
first run's keyword rates partly measured the load generator. A second
run on the same machine, store and builds sent keyword from four
processes with 60 s steps and three rounds: 1.7.1 sustains 70 (was 60),
1.8.0 on glibc 120 and on jemalloc 140 (was at least 140), with single
rounds reaching 150 and 170. Round 2 of both 1.8.0 configurations was
rerun because other jobs ran on the machine during it.

The page now gives the best single round beside each sustained rate,
says that rounds disagree near the limit, keeps the first keyword run's
steps for the same-load comparison at 60/s, and shows SENDERS=4 in the
reproduction steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@gloryfromca gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: the previously confirmed settle, load-failure, install-command, and kept-up defects remain unresolved.

The new delta itself works as intended: a four-process local run sent and completed 80/80 requests at 40/s, evenly split across the senders, and the new three-round data supports the revised keyword sustained rates of 120/140/70 without the old unsupported ≥140 claim. However, this revision leaves the standing reproduced findings unchanged: build_store.py still uses the startup-only row snapshot as its settle signal, sweep.sh still accepts a failed load.py, the documented v1.7.1 install command still exits 2, and keeps_up can still pass materially less completion throughput than the requested rate. Those existing open findings continue to block this revision.

Named nonblocking follow-ups from this delta: the reproduction command needs the custom RATES used for the published 10-QPS increments; the three compact first-run keyword rows have eight cells under an eleven-column detail header; and README/README.zh-CN still carry the old 60/at least 140 keyword headline. They are ordinary documentation fixes with clear workarounds, so at this fifth round they do not create new blockers.

I covered the delta, affected harness callers and result aggregation, history, repository rules, backward compatibility, architecture boundaries, documentation parity, and test integrity; no tests were weakened. Validation: Ruff/format, documentation, import contracts, repository policy, datetime/singleton, and OpenAPI checks passed; benchmark-focused tests passed 435 with 4 skipped; the worktree stayed clean.

gloryfromca and others added 2 commits November 25, 2026 15:56
Review of the harness found four defects, each reproduced by the
reviewers:

- load.py judged a step only on whether latency climbed, so a server
  slow from the first request passed: 1.7.1 hybrid at 5/s, round 2,
  kept up with a p50 of 18.9 s and 3.2 completions/s. A step now also
  needs 90% of its rate to complete while requests go out. Re-judging
  every published step flips three, all 1.7.1 hybrid round 2 (4, 5 and
  6/s), which takes 1.7.1's sustained hybrid rate below 4.
- sweep.sh carried on when load.py failed, ending with exit 0 and blank
  steps. It now checks the executable, the queries and the store before
  copying anything, and exits 1 when the warm-up or a step fails. Its
  log also records the install's commit, since main and the release it
  is ahead of report the same version.
- build_store.py waited for /health's index_rows to stop changing, but
  that count is a startup snapshot, so only cascade.pending was really
  watched. Nothing over HTTP tells when synchronous extraction is done;
  it now settles after five quiet minutes of the cascade, the memorize
  queue and the markdown under --root, which extraction writes last.
  Its progress counts finished sessions, not ones taken off the queue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 1.7.1 did not sustain hybrid's lowest rate under the throughput floor:
  at 4/s its second round completed 3.45 requests/s. Headline, READMEs
  and CHANGELOG say fewer than 4; the step tables are re-judged.
- jemalloc's 16 hybrid searches/s may be the query-embedding cap (16 in
  flight; about 15.6 at 20/s with the stub's 0.78 s mean), not EverOS.
  No control run was made, and the page says so.
- The single load generator froze at 160 and 180/s in the first run (200
  responses after up to 1,469 s under a 60 s timeout); the page no longer
  says one process cannot send faster, which was not shown.
- Limits: 95% of the queries go to the 20 LoCoMo users. The store was
  built by main c2c8d6f, between 1.7.0 and 1.7.1. Reproduce: install
  1.7.1 with --python v1.7.1/bin/python, pass --root to build_store.py,
  use the published RATES, keep provider keys out of the copied
  everos.toml. The first run's keyword table no longer carries three
  summary rows.
- launcher.py and the jemalloc CHANGELOG entry gave the pre-fix gain
  (161 vs 80 QPS) as current; both now give it as before the search
  fixes, beside today's 140 vs 120.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gloryfromca

Copy link
Copy Markdown
Member Author

Thanks @dani1005 for running it end to end. Here is where each summary point landed, on 1c564b6:

  1. ≥ 140: dropped. keyword was rerun with four load.py processes, 60 s steps and three rounds. Sustained rates are 70 / 120 / 140 for 1.7.1 / glibc / jemalloc. The page now also shows the best single round (70 / 150 / 170), because rounds disagree near the limit. The Limits bullet now describes the first run's single process as frozen, with the cause not found, rather than send-limited.
  2. hybrid and the embedding cap: stated in the results, not only in Limits. jemalloc's 16/s may be set by the 16 concurrent query embeddings: at 20/s about 15.6 are in flight, with 2.35 of 4 cores in use. No control run was made. glibc already fell behind at 16/s with 2.7 cores in use.
  3. launcher.py: its numbers (161 vs 80 QPS, 2.4 vs 4.3 s) are now marked as measured before 1.8.0's search fixes. With the fixes it gives keyword 140 vs 120 and hybrid 16 vs 14 sustained requests/s, and 1033 vs 1036 MB. The jemalloc CHANGELOG entry says the same.

Minor points:

  • sweep.log now records the install's commit.
  • Limits notes that 95% of the queries go to the 20 LoCoMo users.
  • The Store paragraph says the store was built by main c2c8d6fc, between 1.7.0 and 1.7.1.
  • Reproduce step 4 warns that everos.toml is copied with the store.

From mrbot's last round: the published RATES are in Reproduce, and the three summary rows that had slipped into the first-run keyword table are gone.

Separate effect of the new throughput floor: 1.7.1's sustained hybrid rate is now below 4 (round 2 completed 3.45/s at 4/s).

@gloryfromca gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers; this can merge as far as I am concerned.

Reviewed the full origin/main...HEAD change and the revision delta from 29f3002f94eb. The live settle gate, completed-session progress, fail-closed sweep, corrected uv interpreter path, throughput floor, rerun keyword results, and corrected 1.7.1/README claims all match their callers and documentation. The published multi-hour provider run was not repeated; the harness behavior and the committed tables' classifications were checked independently.

Validation passed: Ruff lint/format; 14 import-linter architecture contracts; repository asset, size, naming, contributor-doc, datetime, singleton, OpenAPI, and documentation checks; 4,425 unit tests (4 skipped); and 235 integration tests (10 skipped, 6 deselected, with two aiosqlite resource warnings). Focused fixtures also covered markdown settling, health counters, the flat-but-backlogged throughput case, sweep input failure, and the documented 1.7.1 install command.

Coverage included CLAUDE.md and repository gates, the diff and revision history, health/cascade/queue callers, backward-compatible CLI and documentation behavior, test integrity (no tests were changed or weakened), and the enforced architecture boundaries. No new findings.

@dani1005 dani1005 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-ran everything on 1c564b6 against the repo's fake providers (macOS, small store); all review points are resolved.

  • Store build: --root is required; the settle wait now resets when markdown changes (touched an episode file on two polls → two extra quiet minutes, then settled); a rerun of a built plan returns 200 for every session and leaves the markdown unchanged.
  • sweep.sh: missing queries, missing store, a plain directory and a bad everos path each exit 2 with nothing copied; a crashing load.py exits 1 with no processes left behind. A git install records its commit in the log (1.7.1 1c564b65e2eb).
  • Sweeps: hybrid and keyword (SENDERS=2) on main, and keyword on 1.7.1 installed with the corrected uv command; summarize.py prints both tables with the new best-round column.
  • Docs: the 1.7.1 hybrid correction, the embedding-cap note, the frozen-client wording and the query skew read right; the first-run table is fixed; the Chinese page and READMEs carry the same numbers.

Not verified: the published numbers themselves and Linux CPU/memory sampling. Thanks for the thorough turnaround.

The page said jemalloc's 16 hybrid searches/s might be set by EverOS's
16 concurrent query embeddings. A control run on dlab2 raised
query_max_concurrent to 64: up to 60 embedding requests were open at
once, yet jemalloc still kept up at 16/s and fell behind at 20/s in both
rounds (about 16 completed per second, 2.3 of 4 cores in use), the same
as a same-day run at the default 16. The page now says so and keeps the
control run's steps.

It also says a store built by 1.8.0 was not searched with 1.7.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gloryfromca

Copy link
Copy Markdown
Member Author

Follow-up on point 2 (eab3bdf): I ran the control. With query_max_concurrent=64 on jemalloc, the server held up to 60 embedding requests open at once, against 16 at the default. It still kept up at 16/s and fell behind at 20/s in both rounds, completing about 16 per second with 2.3 of 4 cores in use. A same-day round at the default 16 gave the same result. So the 16/s is EverOS's own limit, not the embedding budget. Which part of EverOS sets it was not found. The page states this and includes the control run's steps.

@gloryfromca gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers; this can merge as far as I am concerned.

Reviewed the full origin/main...HEAD change and the documentation-only delta from 1c564b65e2eb. Raising query_max_concurrent from 16 to 64 rules out that embedding semaphore as the 16/s ceiling: both 20/s control rounds completed only 15.8–15.9/s, below the harness's 18/s throughput floor, while 16/s passed. The text appropriately leaves the actual EverOS bottleneck unidentified rather than speculating. The added store-version limitation is also clear.

The English and Chinese control tables match exactly, and all nine classifications agree with the committed throughput rule. Documentation, CJK-language, deprecated-name, and contributor-document checks passed. This revision changes no runtime code, interfaces, architecture boundaries, or tests, so runtime suites were not repeated for this docs-only delta.

Coverage included CLAUDE.md policy, the full diff and revision history, the embedding-provider concurrency caller, the stub provider, harness semantics, backward compatibility, test integrity, and architecture scope. No new findings.

@gloryfromca
gloryfromca merged commit 2de8b22 into main Nov 25, 2026
11 checks passed
@gloryfromca
gloryfromca deleted the feat/search-throughput-benchmark branch November 25, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants